<template>
	<view>
		<!-- 视频组 -->
		<view class="diy-video" :style="{padding:  itemStyle.paddingTop +'px'+ 0}">
			<video class="video" :style="{height: itemStyle.height + 'px'}" :src="params.videoUrl" :poster="params.poster"
				:autoplay="params.autoplay == 1 " controls></video>
		</view>
	</view>


</template>

<script>
	export default {
		name: "diy",

		props: {
			itemIndex: String,
			itemStyle: Object,
			params: Object
		},
		data() {
			return {

			};
		},
		created() {

		}
	}
</script>

<style scoped>
	.diy-video .video {
		width: 100%;
		display: block;
	}
</style>
